<template>
	<view>
		<carHeader :title="'优惠券'"></carHeader>
		<view class="tuCengbai" v-for="(item, index) in couponList" key="index">
			<view class="images">
				<view class="xunhuan">
					<image src="/static/车联网服务-01专业洗车-05洗车-优惠券_slices/椭圆 3 拷贝@2x.png" mode="widthFix"></image>
					<view class="word">
						<view class="text">
							<view class="leftText">
								<view class="textTop">
									<text>{{item.liftTextTop}}</text>
								</view>
								<view class="textBottom">
									<text>{{item.leftTextButtom}}</text>
								</view>
							</view>
							<view class="rightText">
								<text>￥</text>
								<text class="textNumber">{{item.money}}</text>
							</view>
						</view>
						<view class="buttonText">
							<text>有效期至：</text>
							<text>{{item.startTime}}—{{item.endTime}}</text>
							<text class="shiyong">去使用</text>
							<text class="jiantou">></text>
						</view>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				couponList: [{
					liftTextTop: "仅限于XX加油站使用",
					leftTextButtom: "满200元可用",
					money: "20",
					startTime: "2020.05.01",
					endTime: "2023.05.11"
				}, {
					liftTextTop: "通用",
					leftTextButtom: "满200元可用",
					money: "20",
					startTime: "2020.05.11",
					endTime: "2023.05.13"
				}, {
					liftTextTop: "仅限于XX加油站使用",
					leftTextButtom: "满200元可用",
					money: "20",
					startTime: "2020.04.19",
					endTime: "2023.05.12"
				}]
			};
		}
	}
</script>

<style lang="scss">
	.container {
		background-color: white;
	}

	.tuCengbai {
		width: 95%;
		height: 265rpx;
		position: relative;
		top: -230rpx;
		background-color: white;
		margin: 0 auto;
		border-radius: 25rpx;
		padding-top: 40rpx;
		margin-bottom: -30rpx;

		.images {
			width: 100%;
			.xunhuan {
				// z-index: 2;
				margin: 0 37rpx;
				.word {
					color: white;
					.text {
						position: relative;
						top: -210rpx;
						width: 95%;
						margin: 0 auto;
						display: flex;
						justify-content: space-between;
						padding: 11rpx 0;
						border-bottom: 1rpx dashed #fff;

						.leftText {
							margin-left: 25rpx;

							.textTop {
								font-size: 20rpx;
							}

							.textBottom {
								margin: 10rpx 0;
								// margin-bottom: 10rpx;
								font-size: 35rpx;
							}
						}

						.rightText {
							margin-top: 35rpx;
							margin-right: 20rpx;

							.textNumber {
								font-size: 90rpx;
								font-weight: 800;
							}
						}
					}

					.buttonText {
						position: relative;
						top: -200rpx;
						left: 38rpx;
						font-size: 20rpx;
						.shiyong {
							position: relative;
							left: 70rpx;
						}

						.jiantou {
							position: relative;
							left: 80rpx
						}
					}
				}
			}

		}
	}
</style>